given an equation with fractions